﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BA2009.Entities.Helpers
{
    public static class EntityHelper
    {
        public static bool ContainID2(this IList<MapEntity> mapEntities, int id2)
        {
            foreach (var entity in mapEntities)
            {
                if (entity.ID2 == id2)
                    return true;
            }

            return false;
        }

        
    }
}
